package edu.sctu.practice.class02.zengguangchuan.assign03.test2;

/**
 * Created by lenovo0 on 2015/10/29.
 */
public class Max {
    public static Comparable max(Comparable o1, Comparable o2) {
        if(o1.compareTo(null)<o2.compareTo(null)){
            System.out.println("前一个面积大");
            return o1;
        }else {
            System.out.println("后一个面积大");
            return o2;
        }
    }
}
